import { auth, auths, authsAll } from "./modules/auth";
import copy from "./modules/copy";
import debounce from "./modules/debounce";
import longpress from "./modules/longpress";
import role from "./modules/role";
import throttle from "./modules/throttle";
import { time, timeYMD, timeYMDHM } from "./modules/time";
import waterMarker from "./modules/waterMarker";

const directivesList = {
  auth,
  auths,
  authsAll,
  copy,
  debounce,
  longpress,
  role,
  throttle,
  time,
  timeYMD,
  timeYMDHM,
  waterMarker,
};

const directives = {
  install: function (app) {
    Object.keys(directivesList).forEach((key) => {
      app.directive(key, directivesList[key]);
    });
  },
};

export default directives;
